package day06;

import java.util.Scanner;

public class Test03 {
	public static void main(String[] args) {

		String[][] arr = new String[10][12];
		
		Scanner sc = new Scanner(System.in);
		System.out.println("请选择房间");
		int i = sc.nextInt();
		System.out.println(i);
		int row = i / 100 - 1;
		System.out.println(row);
		int column = i % 100 - 1;
		System.out.println(column);
		
		System.out.println(row >= 0 && row < arr.length && column >= 0 && column < arr[row].length);
		
		

		//		int j = 1234;
		// 从j中取出两个整数: 12, 34
		//		System.out.println(j / 100);
		//		System.out.println(j % 100);

	}
}
